package zuoye;

public class F5 {
	public static void main(String[] args){
		int sum=0;
		int n=0;
		while(sum+(n+1)<8888) {
			n++;
			sum+=n;
		}
		System.out.println(n);
		
	}
}
